namespace WebAPI.DAL
{
    using System;
    using System.Data.Entity;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Linq;
    using Models;
    using System.Data.Entity.ModelConfiguration.Conventions;
    public partial class AppDBContext : DbContext
    {
        public AppDBContext()
            : base("name=AppDBContext")
        {
        }

        public DbSet<GoodsType> GoodsType { get; set; }
        public DbSet<Goods> Goods { get; set; }
        public DbSet<UserInfo> UserInfo { get; set; }
        public DbSet<NewsInfo> NewsInfo { get; set; }
        public DbSet<Collect> Collect { get; set; }
        public DbSet<GoodsImages> GoodsImages { get; set; }
        public DbSet<Comment> Comment { get; set; }
        public DbSet<FeedbackType> FeedbackType { get; set; }
        public DbSet<FeedbackMsg> FeedbackMsg { get; set; }
        public DbSet<ConsigneeAddress> ConsigneeAddress { get; set; }
        public DbSet<Area> Area { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
    }
}
